<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>CRM——deal</title>
	<link href="<%=basePath%>css/all.css" media="screen" rel="stylesheet" type="text/css" />
   <link href="<%=basePath%>css/application.css" media="print" rel="stylesheet" type="text/css" />
   <link href="<%=basePath%>css/blue.css" media="screen" rel="stylesheet" title="Theme" type="text/css" />
	
   
   
   
</head>

<body class="clearfix overview narrow_page_with_sidebar_outside webkit  windows"  onloadnot="setupZoom()">
  <div id="quick_show_window" style="display: none">
    <div class="quick_show_window_position">
      <div class="quick_show_window_wrapper">
        <div class="quick_show_window_content">
        </div>
      </div>
    </div>
  </div>

  <div id="task_flash" style="display: none">
    <div class="inner_task_flash">
    </div>
  </div>

	<div id="app_header">
	<div class="background"></div>
	<div class="boundary">
		<div id="upgrade_bar"></div>
		<div id="inner_header_wrapper">
			<a href="/" id="app_logo">
			<img alt="Logo-topleft" src="img/logo-topleft.png" style="padding-top: 8px;" />
			</a>
			<table id="page_actions">
				<tr>
					<td class="tiny">
						<div class="menu_container">
								<span class="action">
									<a href="/people/new" behavior="return_to">
										<span>添加联系</span>
									</a>
								</span>
						</div>
					
					</td>
					<td class="tiny">		
						<div class="menu_container">
							<span class="action">
								<a href="#" behavior="new_task_button" class="menu_target">
									<span>新的任务</span>
								</a>
							</span>
						</div>
					</td>
					<td class="long">
						<div id="search_wrapper">
							<div class="quick_find">
								<div class="field" style="position:relative;">
									<input type="text" id="sidebar_live_search" name="term" title="a contact, case, deal, or tag..."/>
								</div>
							</div>
						</div>
					</td>
				</tr>
			</table>

			<div id="global_links_container">
				<div class="menu_container">
			      <a href="#" class="name menu_target">
			        设置
			        <span>▼</span>
			      </a>
			      <div id="balloon_global_links" class="balloon center menu_content ">
						<div class="balloon_pointer">
							<div class="balloon_arrow menu_target"></div>
							<div class="balloon_arrow_border"></div>
						</div>
						<div class="balloon_wrapper">
							<div class="balloon_content">
								<ul class="global_links">
								<li><a href="#" class="">用户</a></li>
								<li><a href="#" class="">密码重置</a></li>
								<li><a href="#" class="">分组</a></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
           </div>
		</div>
	</div>
</div>


	<div id="wrapper">
	<div id="inner_wrapper">
		<div id="main_body" class="column">
			<div id="blank_slate" class="clearfix">  
			</div>
			
		
		 <div id="screen_body">
        <!-- page sidebar -->
        <div id="page_sidebar">
          <div class="liner">
            
  <div class="sidebox_wrapper">
    <div class="liner">
      <div class="sidebox closedbox">
       <h3><a href="<%=basePath%>deal/to_new_deal.action">创建新交易</a></h3>
        
      </div>
    </div>
  </div>

          </div>
        </div>
        <!--// page sidebar -->

        <!-- page -->
        <div id="page">

            <!-- page header -->
            <div id="page_header_wrapper">
              
				<div id="page_header">

					<div class="page_header">
						<h1>交易</h1>
					</div>

				</div>
            </div>
            <!--// page header -->

            <!-- page contents -->
            <div id="page_contents_wrapper" class="clearfix">

              <!-- main column -->
              <div id="page_main_column" class="column">
                <div class="liner">
                   <!-- 自己写的主要代码区 -->
                   <c:forEach items = "${dealList}" var = "deal">
					<table id = "pending_deals" class = "deals">
						<tbody>
					
							<tr id = "deal" style = "height:90px">
								<td class = "yuan" style = "width:70px">
									<img src="<%=basePath%>img/currency_yuan_red.ico" alt="" />
								</td>
								<td class = "detail" style = "width:500px">
									<a href = "#">${deal.name}</a>与<a href = "#">${deal.contact.name}</a>有关
									<div class = "background">
										${deal.describe }
									</div>
									<div class="price">
										<span class="label" style="background:#F9CC64; font-size: 12px; border-radius: 3px 3px 3px 3px; padding: 1px 4px 2px;">${deal.dealType.type }</span>¥${deal.price }
									</div>
									<div>
										由${deal.user.username }负责
									</div>
									
								</td>
								<td class = "state" style="width:60px">
										<span class="label label-pending" style="background:#92C111; font-size: 18px; border-radius: 3px 3px 3px 3px; padding: 1px 4px 2px;">${deal.progress }</span>
								</td>
								
							</tr>
							<hr/>
							
												
					
						</tbody>
					</table>
					</c:forEach>	
					 <!-- 自己写的主要代码区 -->
                </div>
              </div>
              <!--// main column -->

            </div>
            <!--// page contents -->
          
        </div>
        <!--// page -->
      </div>
		
		
		
    <div style="margin-top: 30px"> </div>        
		</div>
		<div id="global_sidebar" class="column">
		<div class="liner">
			<div id="global_nav">
			<ul>
			<li class="dashboard"><a href="/" class="selected">最新动态</a></li>
			<li class="parties"><a href="/parties" class="">联系 <span class='stat'>0人</span></a></li>
			<li class="tasks"><a href="/tasks" class="">任务<span class='stat'>无今天</span></a></li>
			<li class="deals"><a href="/deals" class="">交易 <span class='stat'>无</span></a></li>
			<li class="dashboard"><a href="/" class="selected">营销</a></li>
			</ul>
			</div>
          <div id="recent_items"><hr/>
			<h4>最近浏览</h4>
			<div class="recent_items">
				<a href="/tags/2399793" class="recent_item ">
				<span class="sprite avatar blank_avatar tag " style="background: url(https://d1a993iq9azmzq.cloudfront.net/rev_0621f90/images/highrise_sprites.png) no-repeat -168px -148px; width: 32px; padding-top: 32px; " title="大客户" id="">大客户</span>
				<span class="recent_name">大客户</span>
				<span class="recent_desc"></span>
				</a>
			</div>
			</div>
		</div>
    </div>
    </div>
</div>

  <hr style="display: none;" />
	<div id="preloaded_images" style="position:absolute; height:0px; overflow:hidden;">
		<img alt="Dots-white" src="img/dots-white.gif" />
		<img alt="Dots-black" src="img/dots-black.gif" />
	</div>
  <script src="js/sprockets.js" type="text/javascript"></script> 	
</body>
</html>
	